﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="Upload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Upload</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1">
            <tr>
                <td colspan="4"><asp:Button ID="btDeleteData" runat="server" 
                        Text="Download the Answers" onclick="btDownloadData_Click"/></td>        
            </tr>
            <tr>
                <td><asp:Label ID="Label1" runat="server" Text="1.Upload Parts Description" />
                    <br /><p style="color:Red">if you want to upload another list of parts description you should delete all 
                    data and upload again! Please download answers first</p><asp:Button ID="btDelete" runat="server" OnClick="btDelete_Click" Text="Delete"/></td>
                <td><asp:FileUpload ID="fuParts" runat="server"/></td>
                <td><asp:Button ID="btUploadParts" runat="server" OnClick="btUploadParts_Click" Text="Upload" /></td>
                <td><img src="../images/parts.jpg" alt="title,description,max_mark,yesno_description,number"/></td>
            </tr>
            <tr>
                <td><asp:Label ID="Label2" runat="server" Text="2.Upload Marking Descriptions" /></td>
                <td><asp:FileUpload ID="fuMarks" runat="server" /></td>
                <td><asp:Button ID="btUploadMarks" runat="server" OnClick="btUploadMarks_Click" Text="Upload"/></td>
                <td><img src="../images/markdetails.jpg" alt="part_id,mark,description"/></td>
            </tr>
            <tr>
                <td><asp:Label ID="Label3" runat="server" Text="3.Upload Questions" /></td>
                <td><asp:FileUpload ID="fuQuestions" runat="server" /></td>
                <td><asp:Button ID="btQuestions" runat="server" OnClick="btQuestions_Click" Text="Upload"/></td>
                <td><img src="../images/questions.jpg" alt="description,no,part_id"/></td>
            </tr>
        </table>
    </div>
    <div>
        <p>Delimited by &quot;$&quot;, organized the data in the order shown in picutres, </p><p style="color:Red;">
        If you just modify the content not the IDs, you do not need to delete all the 
        data.</p>            
    </div>
    <div>
        <asp:Panel ID="pnlResult" runat="server">
            <asp:Label ID="lbResult" runat="server" />            
        </asp:Panel>
    </div>
    <table width="100%">
        <tr>
            <td>Questions</td>
            <td>Parts</td>
            <td>MarkDetails</td>
        </tr>
        <tr valign="top" align="left">
            <td><asp:GridView ID="gvQuestions" runat="server" /></td>
            <td><asp:GridView ID="gvParts" runat="server" /></td>
            <td><asp:GridView ID="gvMarkDetails" runat="server" /></td>           
        </tr>
    </table>
    </form>
    
</body>
</html>

